/**
 * 
 */
package edu.hm.compiler.parser.grammar.term;

import edu.hm.compiler.parser.grammar.variable.Variable;

/**
 * @author Saruman
 */
public class TermVariable implements Term
{
    private final Variable variable;

    /**
     * @param variable
     */
    public TermVariable( final Variable variable )
    {
        this.variable = variable;
    }

    public Variable getVariable()
    {
        return this.variable;
    }

    @Override
    public String toString()
    {
        return "TermVariable [variable=" + this.variable + "]"; //$NON-NLS-1$ //$NON-NLS-2$
    }

    @Override
    public String getString()
    {
        return this.variable.getVarId();
    }
}
